<template>
  <div class="recommend">
    <div class="recommend-item" v-for="recommend in list" :key="recommend.title">
      <a :href="recommend.link">
        <img :src="recommend.image" alt="">
        <div>{{recommend.title}}</div>
      </a>
    </div>
  </div>
</template>
<script>
export default {
  name: "HomeRecommend",
  data: () => ({

  }),
  props: {
    list: {
      type: Array,
      default: () => []
    }
  }
}
</script>
<style scoped>
.recommend {
  display: flex;
  width: 100%;
  text-align: center;
  padding: 10px 0 20px;
  border-bottom: 8px solid #eee;
}

.recommend-item {
  flex: 1;
  font-size: 12px;
  font-weight: bold;
}

.recommend-item img {
  width: 75px;
  height: 75px;
  margin-bottom: 10px;
}
</style>
